<template>
  <div>
    <div class="title">周末去哪儿</div>
    <ul>
      <li class="content border-bottom" v-for="item of list" :key="item.id">
        <div class="content-img-wrapper">
          <img class="content-img" :src="item.imgUrl" />
        </div>
        <div class="img-info">
          <p class="img-title">{{item.title}}</p>
          <p class="img-desc">{{item.desc}}</p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeWeekend',
  props: {
    list: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/mixins.styl'
  .title
    line-height: .94rem
    padding-left: .2rem
    background: #F5F5F5
    font-size: .28rem
  .content-img-wrapper
    overflow: hidden
    width: 100%
    height: 0
    padding-bottom: 37.09%
    .content-img
      width: 100%
  .img-info
    padding: .2rem
    .img-title
      line-height: .64rem
      font-size: .32rem
      ellipsis()
    .img-desc
      line-height: .44rem
      color: #CCCCCC
      ellipsis()
</style>
